//添加专利
import {transfer} from "./axiosApi";

export function AddPatent(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Patent/add',
    })
}

//修改专利
export function UpdatePatent(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Patent/update',
    })
}

//删除专利
export function deletePatent(id) {
    return transfer({
        params: {id},
        url: '/Patent/del'
    })
}

export function QueryPatent(data) {
    return transfer({
        method: 'post',
        data,
        //condition条件
        url: '/Patent/page',
    })
}

export function QueryPatentStatistics(params) {
    return transfer({
        url: '/Patent/statistics',
        params
    })
}